package com.xgp.single;

public enum  EnumSingle {
    INSTANCE;

    public EnumSingle getInstance() {
        return INSTANCE;
    }
}


class Test {
    public static void main(String[] args) {
        EnumSingle in1 = EnumSingle.INSTANCE;
        EnumSingle in2 = EnumSingle.INSTANCE;

        System.out.println(in1 == in2);
    }
}